﻿using RTUDataAcquisition.Utils.Emails.Dto;
using RTUDataAcquisition.Utils.Emails.EmailSendCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RTUDataAcquisition.Utils.Emails
{
    public class EmialFactory
    {
        public static void SendEmail(SendEmailInputDto sendEmailInputDto)
        {
            BaseEmailInterface baseEmailInterface = null;
            if (sendEmailInputDto.SendEmialType == Enums.SendEmialType.QQ)
            {
                baseEmailInterface = new QQEmail();
            }
            if (baseEmailInterface != null)
            {
                baseEmailInterface.SendEmail(sendEmailInputDto);
            }
        }
    }
}
